package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.commit.R;
import com.itheima.pojo.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {
    R<String> add(Category category);
    R<Page> selectAll(Integer page,Integer pageSize);
    R<String> delete(Long id);
    R<String> update(Category category);
    R<List<Category>> list(Category category);
}
